<!-- toaster directive -->

<toaster-container
	toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->
<!-- 导航条 -->
<div class="bg-white bread-crumb">
	<ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
		<li><a ui-sref="main"><i class="fa fa-home"></i> 首页1</a></li>
		<li class="active">门禁管理</li>
		<li class="active" ng-bind="title">添加授权</li>
	</ul>
</div>

<!-- 内容区域 -->
<div class="wrapper-md content">
	<div class="panel panel-default">
		<!-- 头部 -->
		<div class="panel-heading font-bold">
			{{title}}<a
				class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs"
				ui-sref="main.authm.cardAuth.list"><i
				class="text-md fa fa-times text-muted"></i></a>
		</div>
		<!--表单-->
		<div class="panel-body">
			<form class="form-horizontal" name="user_form">
				<!--权限名称-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label" for="authName">权限名称</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" name="authName" id="authName" ng-model="record.authName">
					</div>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				<!--btn-->
				<div class="form-group">
					<div class="col-sm-6 col-sm-offset-2">
						<button type="button" class="btn  w-xs addNew" ng-show="reset" ng-click="resetFrom()">重置</button>
						<button type="submit" class="btn btn-info w-xs m-l-xl addNew"
							ng-disabled="isDisabled">保存</button> 
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

    <script type="text/ng-template" id="deviceList.html" >  
<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-heading clearfix">
                
                <div class="w-lg">
                    <form ng-submit="search()" class="ng-pristine ng-valid">
                        <div class="input-group search-box">
                            <input type="text" class="form-control" ng-model="param.keyword" placeholder="身份证号、用户名、房屋">
                            <i ng-show="user.keyword" ng-click="clearSearch()" class="fa fa-times-circle text-muted search-clear"></i>
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>

            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
						<th>房屋编号</th>
                    	<th>房屋名称</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr >
                        <td class="v-middle">1000</td>
                        <td class="v-middle">幸福里新居</td>
                        <td class="v-middle">
                        	<a ng-click="selectDevice('1','幸福里新居','1')">选择</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div><!-- /.table-responsive -->

            <!-- 底部分页 -->
			<span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div><!-- /.panel -->
    </div><!-- /.wrapper-data -->

			</div><!-- /.wrapper-md -->  
        <div class="modal-footer">  
            <button class="btn btn-warning" ng-click="cancel()">Cancel</button>  
        </div>  
      </script>
      
  <script type="text/ng-template" id="personList.html" >  
<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-heading clearfix">
                
                <div class="w-lg">
                    <form ng-submit="search()" class="ng-pristine ng-valid">
                        <div class="input-group search-box">
                            <input type="text" class="form-control" ng-model="param.keyword" placeholder="姓名">
                            <i ng-show="user.keyword" ng-click="clearSearch()" class="fa fa-times-circle text-muted search-clear"></i>
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>

            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
						<th>人员编号</th>
                    	<th>人员姓名</th>
						<th>身份证号码</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>

                    <tr ng-repeat="item in pageInfo.data">
                        <td class="v-middle">{{item.personId}}</td>
                        <td class="v-middle">{{item.personName}}</td>
						<td class="v-middle">{{item.idCard}}</td>
                        <td class="v-middle">
                        	<a ng-click="selectPerson(item.personId,item.personName)">选择</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div><!-- /.table-responsive -->

            <!-- 底部分页 -->
			<span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div><!-- /.panel -->
    </div><!-- /.wrapper-data -->

			</div><!-- /.wrapper-md -->  
        <div class="modal-footer">  
            <button class="btn btn-warning" ng-click="cancel()">Cancel</button>  
        </div>  
      </script>     
